/*
 * Copyright (c) 2025 Alliedstar
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#ifndef ZEPHYR_INCLUDE_DRIVERS_STEPPER_TI_DRV8889_H_
#define ZEPHYR_INCLUDE_DRIVERS_STEPPER_TI_DRV8889_H_

#ifdef __cplusplus
extern "C" {
#endif

/*******************************************************************************
//  TRQ_DAC = 2.2*Ifull/Vref
//  If Ifull is 1A and Vref is 2.2V, then TRQ_DAC is 1(100%)
//	TRQ_DAC[7:4]
//		0000b				100%
//		0001b				93.75%
//		0010b				87.5%
//		0011b				81.25%
//		0100b				75%
//		...
//		1110b				12.5%
//		1111b				6.25%
********************************************************************************/
int drv8889_set_trq_dac(const struct device *dev, uint8_t value);
// int drv8889_get_chipid(const struct device *dev, uint8_t *value);

#ifdef __cplusplus
}
#endif

#endif